<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<%@ include file="/WEB-INF/jsp/front/task/inc/taglibs.jsp"%>
<%@ include file="/WEB-INF/jsp/front/task/inc/meta_form.jsp"%>
<link href="${approot}/static/style/task/css/table_page_form.css" type="text/css" rel="stylesheet">
<link href="${approot}/static/style/task/css/global.css" type="text/css" rel="stylesheet">
<script type="text/javascript">
            /* <![CDATA[ */
            jQuery(function(){
                jQuery("#name").validate({
                    expression: "if (VAL) return true; else return false;",
                    message: "账号不能为空"
                });   
                jQuery('#item').validated(function(){
					//alert("通过验证");
					var platform=$('#platform').val();
                    var url="${approot}/task/ssl/userno/add";
                    //var back="${approot}/task/ssl/userno/list/menu/${type}/"+platform+"/${tabID}/0/0";
                    var back="${approot}/task/ssl/userno/toTabs/${type}/"+platform+"/"+platform;
                    ajax_submit("yes","no","绑定账号",url,back);
				});
            });
            /* ]]> */
        </script>
<script type="text/javascript">
$(function() {
	$("#tabs").tabs();
	var url=approot+"/task/ssl/userno/list/menu/${type}/${platform}/${tabID}/0/0";
	load_tabs_html(url,'${tabID}');
});

function tabClick(tabID)
{
	var url=approot+"/task/ssl/userno/list/menu/${type}/${platform}/"+tabID+"/0/0";
	load_tabs_html(url,tabID);
}
</script>
    </head>
<body>

<!-- topbar start -->
 <c:import url="/task/header" context="${approot}"></c:import>
<!-- header end -->

<div class="clear"></div>

<div id="tbody">
 <c:import url="/task/ssl/user/info" context="${approot}"></c:import>
 <c:import url="/task/ssl/user/menu" context="${approot}"></c:import>

<div class="mainContent_wide">
<div class="panel mb8">
<h3><strong><c:if test="${type==1}">绑定店铺</c:if>
<c:if test="${type==2}">绑定小号</c:if>
</strong></h3>
<div class="content p10" style="text-align:left;">
<form action="" enctype="multipart/form-data" method="post" id="item" name="item">
<table cellpadding="0" cellspacing="1" class="add_table" width="100%">
<tr>
<td width="15%">
<c:if test="${type==1}">店铺平台</c:if>
<c:if test="${type==2}">小号平台</c:if></td>
<td width="85%"><input type="radio" name="platform" value="1" id="platform" checked="checked"/>淘宝
    <input type="radio" name="platform" value="2" id="platform"/>拍拍</td>
</tr>
<tr>
<td><c:if test="${type==1}">店铺名称</c:if>
<c:if test="${type==2}">小号名称</c:if>：</td>
<td>
<input id="name" name="name" type="text" value="" style="ime-mode:disabled" size="10" />您还没有在淘宝任务区绑定掌柜号，请点击【绑定掌柜号】
</td>
</tr>
<tr>
<td></td>
<td>
<input type="hidden" name="type" value="${type}" id="type"/>
<input type="submit" name="dosubmit" class="submit" id="button" value="确 定" />
<input type="reset" name="button2" class="reset" id="button2" value="重 置" />
</td>
</tr>
</table>
</form>
</div>
</div>


<div id="tabs">
	<ul>
		<li><a href="#tabs-1" onclick="tabClick(1);"><c:if test="${type==1}">淘宝店铺</c:if>
<c:if test="${type==2}">淘宝小号</c:if>(<font color='red'>3</font>)</a></li>
		<li><a href="#tabs-2" onclick="tabClick(2);"><c:if test="${type==1}">拍拍店铺</c:if>
<c:if test="${type==2}">拍拍小号</c:if>(<font color='red'>48</font>)</a></li>
	</ul>
	<div id="tabs-1">
	未接手
    </div>		
	<div id="tabs-2">
	等待发货
	</div>
</div>
</div>

<!-- copyright start -->
 <c:import url="/task/footer" context="${approot}"></c:import>
</body></html>